//package com.allwees.data.dataport.module.useraction.api;
//
//import com.allwees.bs.core.modelbase.vo.R;
//import com.allwees.data.dataport.common.api.BaseApi;
//import com.allwees.data.dataport.module.useraction.req.PvLogReq;
//import com.allwees.data.dataport.module.useraction.service.ProductShowLogService;
//import com.allwees.data.dataport.module.useraction.service.PvLogService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//
///**
// *
// *
// * @author yangylsky
// * @since 2020-03-26
// *
// */
//@Slf4j
//@RestController
//@RequestMapping("/api/v1/pv")
//public class PvLogApi extends BaseApi {
//	@Autowired
//	private PvLogService pvLogService;
//
//	@Autowired
//	private ProductShowLogService productShowLogService;
//
//	@GetMapping("/v")
//	public R logPv(HttpServletRequest request, PvLogReq req) {
////		PvLog pvLog = req.toPvLog();
////		pvLog.updateRequestInfo(request);
////		pvLogService.saveToEs(pvLog);
//		return R.ok();
//	}
//
//	@GetMapping("/r")
//	public R refresh(int total) {
//		pvLogService.refresh(total);
//		return R.ok();
//	}
//
//	@GetMapping("/product/r")
//	public R refresh1(int total) {
//		productShowLogService.refresh(total);
//		return R.ok();
//	}
//}
